package com.wang.dao;

import com.wang.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    @Select("select  * from mybatis.user")
    List<User> getUser();
    @Select("select  * from mybatis.user where id=#{id}")
    User getUserByid(@Param("id") int id);
    
}
